package exp07gui.mvc;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Date;
import java.util.StringTokenizer;

/**
 * java swing的一种MVC编程模式
 *
 * Model 层只需要实现计算的逻辑（算法）无需和视图有任何关联
 */
public class Model {
    int a, b, c;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    public int getC() {
        return c;
    }

    public void setC(int c) {
        this.c = c;
    }

    public void calculate() {
        this.setC(a + b);
    }
}